//
//  UIButton+NavBtnFont.m
//  WHPersonalData
//
//  Created by shengmeng chen on 2023/2/25.
//  Copyright © 2023 mac. All rights reserved.
//

#import "UIButton+NavBtnFont.h"

@implementation UIButton (NavBtnFont)

-(void)setNavTitleFont
{
    UIFont *font=  [UIFont preferredFontForTextStyle:UIFontTextStyleHeadline];
    if(font.pointSize<17){
        [self.titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:17]];
    }else if (font.pointSize>21)
    {
        [self.titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:21]];
    }else{
        [self.titleLabel setFont:font];
    }
}

@end
